How to convert a list of string into a list of floats in c